package com.mxf.code.prototype;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2017-2022, mxf
 * Author: 28382
 * Date: 2022/10/13 15:06
 * FileName: TestPController
 * Description: 测试
 */
@RestController("/TestPController")
public class TestPController {
    @GetMapping("/t")
    public TestP test() throws CloneNotSupportedException {
        TestP testP = new TestP();
        testP.setId("1");
        testP.setName("name");
        System.out.println(System.identityHashCode(testP));
        System.out.println(System.identityHashCode(testP.clone()));
        return testP;
    }
}
